import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-07-14
 * Time: 22:33
 */
public class test5 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int a = in.nextInt();
            int b = in.nextInt();
            int sum = a * b;
            int ret = sum / getNum(a,b);
            System.out.println(ret);
        }
    }


    // 找最小公约数
    public static int getNum(int a,int b){
        if(b==0){
            return a;
        }
        return getNum(b,a%b);
    }
}
